package com.bwie.shop.mapper;

import com.bwie.common.domain.Card;
import com.bwie.common.domain.Coupon;
import com.bwie.common.domain.Shop;
import com.bwie.common.domain.request.CouponRequest;
import com.bwie.common.domain.request.ShopRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ShopMapper {


    List<Shop> showShop(ShopRequest shopRequest);

    Shop findById(@Param("shopId") String shopId);

    List<Coupon> showCoupon();


    Integer addCoupon(CouponRequest couponRequest);

    Integer deleteCoupon(@Param("couponId") String couponId);

    List<Card> showCard();

    Integer updateStatus(Card card);

    Coupon findByCouponId(@Param("couponId") Integer couponId);

    Integer updateCouponStatsu(CouponRequest couponRequest);

}
